Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add node group autoscaling policy #3230

Merged
merged 3 commits into from
Mar 9, 2020

Conversation

c2thorn
Copy link
Member

@c2thorn c2thorn commented Mar 9, 2020

Fixes hashicorp/terraform-provider-google#5628

Release Note Template for Downstream PRs (will be copied)

compute: Added `autoscaling_policy` to `google_compute_node_group`

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 35 insertions(+))
Terraform Beta: Diff ( 3 files changed, 245 insertions(+))
TF OiCS: Diff ( 4 files changed, 126 insertions(+))
Inspec: Diff ( 5 files changed, 54 insertions(+))

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 36 insertions(+))
Terraform Beta: Diff ( 3 files changed, 250 insertions(+))
TF OiCS: Diff ( 4 files changed, 127 insertions(+))
Inspec: Diff ( 5 files changed, 54 insertions(+))

@c2thorn c2thorn requested a review from slevenick March 9, 2020 19:11
properties:
zone: !ruby/object:Overrides::Terraform::PropertyOverride
required: false
default_from_api: true
custom_flatten: 'templates/terraform/custom_flatten/name_from_self_link.erb'
autoscalingPolicy: !ruby/object:Overrides::Terraform::PropertyOverride
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do these need to all be O+C? Is the autoscalingPolicy block returned from the API even if it is undefined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the block was returning from the API in the basic test without autoscalingPolicy being set in the config, and was throwing a diff.

If the block IS defined, mode and maxNodes are required.

- !ruby/object:Api::Type::Integer
name: 'minNodes'
description: |
Minimum size of the node group, and must be an integer value less
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little awkwardly worded. Maybe "Minimum size of the node group. Must be an ..."

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 1 file changed, 36 insertions(+))
Terraform Beta: Diff ( 3 files changed, 250 insertions(+))
TF OiCS: Diff ( 4 files changed, 127 insertions(+))
Inspec: Diff ( 5 files changed, 54 insertions(+))

@c2thorn c2thorn merged commit b366344 into GoogleCloudPlatform:master Mar 9, 2020
@c2thorn c2thorn deleted the node-group-autoscaler branch March 9, 2020 23:05
nathkn pushed a commit to nathkn/magic-modules that referenced this pull request May 18, 2020
* Add node group autoscaling policy

* add default_from_api

* Update api.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sole Tenancy Nodes Autoscaling (b/135550646)
4 participants